import request from '@/utils/request.js'
export function channels () {
  return request({
    url: '/v1_0/channels',
    method: 'get'
  })
}

export function articles (id) {
  return request({
    url: `/v1_0/articles?channel_id=${id}&timestamp=${Date.now()}`
    // /v1_0/articles?channel_id=$ {id}&timestamp=${ Date.now()}
  })
}
